package com.gjs.intranet.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gjs.common.enums.entity.LibraryAttachFileTypeEnum;
import com.gjs.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 出版物附件表
 * </p>
 *
 * @author JC_Ho
 * @since 2022-04-11
 */
@Getter
@Setter
@TableName("library_attach")
@ApiModel(value = "LibraryAttach对象", description = "出版物附件表")
public class LibraryAttach extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("附件类型（原始素材文件/缴送成品/缴送附属品/数字资源）")
    @TableField("file_type")
    private LibraryAttachFileTypeEnum fileType;

    @ApiModelProperty("图书表ID，file_type为 数字资源 时必填")
    @TableField("book_id")
    private Long bookId;

    @ApiModelProperty("项目表ID，file_type为 原始素材文件/缴送成品/缴送附属品 时必填")
    @TableField("project_id")
    private Long projectId;

    @ApiModelProperty("文件名")
    @TableField("filename")
    private String filename;

    @ApiModelProperty("文件大小（单位：byte）")
    @TableField("file_size")
    private Integer fileSize;

    @ApiModelProperty("NAS存储路径")
    @TableField("nas_path")
    private String nasPath;

}
